package com.woniuxy.services;

import com.github.pagehelper.PageInfo;
import com.woniuxy.entitys.TbCustomer;

import java.util.Date;
import java.util.List;

public interface CustomerService {
    PageInfo<TbCustomer> getAllCustomers(Integer pageNum, Integer pageSize);

    PageInfo<TbCustomer> getOneByTel(Integer pageNum, Integer pageSize, String telphoneCondition);

    PageInfo<TbCustomer> getByCondition(Integer pageNum, Integer pageSize, Date beginTime, Date endTime ,Integer radio);

    PageInfo<TbCustomer> getByRadio(Integer pageNum, Integer pageSize, Integer radio);

    TbCustomer getDetailByCid(Integer cid);

    List<TbCustomer> selectAll();

    TbCustomer getCustomerInfo(String phone);

    boolean modifyInfo(TbCustomer tbCustomer);
}
